package stats.web;

import java.util.logging.Logger;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class TestController {

    private Logger log = Logger.getAnonymousLogger();

    @RequestMapping("hello")
    public ModelAndView sayHello() {
        log.info("Hello request got");
        ModelAndView res = new ModelAndView();
        res.setViewName("hello");
        res.addObject("myModel", Integer.valueOf(33));
        return res;
    }

    @RequestMapping("hello2")
    public ModelAndView sayHello2() {
        ModelAndView res = new ModelAndView();
        res.setViewName("hello");
        res.addObject("myModel", Integer.valueOf(77));
        return res;
    }
}
